# Makefile for NH3D_MPI

#include $(nh3d_path)/MakefileCheb.in
include Makefile.in
#include $(nh3d_path)/MakefileBG.in
#include $(nh3d_path)/mkl_seq_link.in

# Build the executable
all : 
#	cd $(objfile_path) && make all && cd $(nh3d_path)
	cd $(radiation_path) && make all && cd $(nh3d_path)
	cd $(nh3d_mpi_path) && make all && cd $(nh3d_path)
	cd $(lake_path) && make all && cd $(nh3d_path)
	cd $(isba_path) && make all && cd $(isba_path)
	cd $(inmsoil_path) && make all && cd $(nh3d_path)
	cd $(source_path) && make all && cd $(nh3d_path)
	cd $(inmsoil_interface_path) && make all && cd $(nh3d_path)
	cd $(cmodel_path) && make all && cd $(nh3d_path)
	$(f90comp) $(objfile_path)/*.o \
		$(mkl_link) \
		$(itac_keys) \
		$(debug_keys) \
		$(check_keys) \
		$(keys) \
		$(exec)



# Clean all
clean : 
	rm -f $(exec)
	rm -f $(objfile_path)/*.o
	rm -f $(module_path)/*.mod $(module_path)/*.f90
